﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SBuff extends Object
    {
        public var buffId:int;
        public var cdDt:Date;
        public var beginDt:Date;
        public var endDt:Date;
        public var remainSec:int;
        public var value:int;
        public var count:int;
        public var overLay:int;
        public var fromEntityIds:Array;

        public function SBuff()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.buffId);
            param1.writeDate(this.cdDt);
            param1.writeDate(this.beginDt);
            param1.writeDate(this.endDt);
            param1.writeInt(this.remainSec);
            param1.writeInt(this.value);
            param1.writeInt(this.count);
            param1.writeInt(this.overLay);
            SeqEntityIdHelper.write(param1, this.fromEntityIds);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.buffId = param1.readInt();
            this.cdDt = param1.readDate();
            this.beginDt = param1.readDate();
            this.endDt = param1.readDate();
            this.remainSec = param1.readInt();
            this.value = param1.readInt();
            this.count = param1.readInt();
            this.overLay = param1.readInt();
            this.fromEntityIds = SeqEntityIdHelper.read(param1);
            return;
        }// end function

    }
}
